﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>GPS Tracking System </title>

    <meta http-equiv="Content/css-Type" content="text/html; charset=utf-8">
	<meta content="tracker.vn hệ thống GPS ổn định, nhanh, hiệu quả, giúp bạn tiết kiệm chi phí giám sát" name="title">
	<meta content="tracker.vn hệ thống GPS ổn định, nhanh, hiệu quả, giúp bạn tiết kiệm chi phí giám sát" name="description">

    <link type="image/x-icon" href="../../favicon.ico" rel="icon">
    <link rel="stylesheet" type="text/css" href="../../Scripts/component/resources/css/ext-all.css" />
    <link rel="stylesheet" type="text/css" href="../../Content/css/chooser.css" />
    <link rel="stylesheet" type="text/css" href="../../Content/css/btn.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/extends/css/data-view.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/extends/css/data-view1.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/extends/css/Ext.ux.grid.CellActions.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/extends/css/Ext.ux.grid.RowActions.css" />
    <!-- <link rel="stylesheet" type="text/css" href="../../Scripts/extends/css/Ext.ux.grid.RowAction.css" /> -->
    <link rel="stylesheet" type="text/css" href="../../Scripts/extends/progresscolumn/ProgressColumn.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/extends/css/Ext.ux.form.CheckboxCombo.min.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/extends/css/RowEditor.css" />
    <link rel="stylesheet" type="text/css" href="../../Content/css/main.css" />
    <link rel="stylesheet" type="text/css" href="../../Content/css/coolBlues.css" />
    
    <style type="text/css">
        .x-grid3-td-progress-cell .x-grid3-cell-inner
        {
            font-weight: bold;
        }
        .x-grid3-td-progress-cell .high
        {
            background: transparent url(../../Scripts/extends/progresscolumn/images/progress-bg-red.gif) 0 -33px;
        }
        .x-grid3-td-progress-cell .medium
        {
            background: transparent url(../../Scripts/extends/progresscolumn/images/progress-bg-orange.gif) 0 -33px;
        }
        .x-grid3-td-progress-cell .low
        {
            background: transparent url(../../Scripts/extends/progresscolumn/images/progress-bg-green.gif) 0 -33px;
        }
        .x-grid3-td-progress-cell .ux-progress-cell-foreground
        {
            color: #fff;
        }
    </style>
    <script type="text/javascript" src="../../Scripts/component/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="../../Scripts/component/ext-all.js"></script>
    <script type="text/javascript" src="../../sound/soundmanager2-min.js"></script>
    <script type="text/javascript" src="../../Scripts/extends/Ext.ux.JSLoader.js"></script>
    <script type="text/javascript" src="../../Scripts/cookie.js"></script>
    <script type="text/javascript" src="../../Scripts/Dictionary.js"></script>
    <script type="text/javascript" src="../../Scripts/security.js"></script>
    
    <script type="text/javascript">
        var meimaptype = getCookie("meimaptype") == null ? 0 : parseInt(getCookie("meimaptype")); //0 google map ,1 bing map
        if (meimaptype == 0) {
           // jswrite('http://maps.google.com/maps?file=api&amp;v=2&amp;key=AIzaSyCaFc-Mwf5l1iYUwkhqZRl0HaSl4_FOMgQ');
        }
        else if (meimaptype == 1) {
           // jswrite('http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2');
        }
    </script>
</head>
<body>
    <form id="Form1" name="aspform" runat="server">
    <div id="loading-mask" style="">
    </div>
    <div id="loading">
        <div class="loading-indicator">
            <img src="../Content/images/loading.gif" alt="" width="32" height="32" style="margin-right: 8px;"
                align="absmiddle" /><div id="div_loading_content">
                    Loading...</div>
        </div>
    </div>
    <div id="header" style="visibility: hidden">
        
    </div>
    </form>
</body>

<script type="text/javascript">
    
    var clientlang = window.navigator.language;
    if (clientlang == null)
        clientlang = window.navigator.systemLanguage;
    var turnoffalarmsound = getCookie("turnoffalarmsound") == 'false' ? false : true;
    var showmiles = getCookie("showmiles") == 'true' ? true : false;
    var showfahrenheit = getCookie("showfahrenheit") == 'true' ? true : false;
    var speedstr = "km/h";
    if (showmiles)
        speedstr = "mph";

    var permission = <%=ViewData["permission"]%>;
    var grouplogin = <%=ViewData["grouplogin"] %>;

    var isdemoaccount = 'False';

    var showStatuseInfoArray = [];

    var gmapurl = 'maps.google.com';
    var hasEmergency = false;
    var soundLoaded = false;
    var soundManager;

    function showStatusInfoClass(bitIndex, iconTrue, iconFalse, TrueExp, FalseExp) {
        this.bitIndex = bitIndex;
        this.iconTrue = iconTrue;
        this.iconFalse = iconFalse;
        this.TrueExp = TrueExp;
        this.FalseExp = FalseExp;
    }
        
</script>
<script type="text/javascript" src="../../Scripts/settings.js"></script>
<script type="text/javascript">
    var rtimes = 0;
    /* phu comment
    if (typeof (GMarker) == 'undefined' && meimaptype == 0) {

        var lang = getCookie("gpslang");
        if (clientlang == "zh-cn" || clientlang == "zh-CN") {
            if (rtimes >= 3) {
                setCookie("meimaptype", "2", 0.1);
            }
            setTimeout(function () {
                rtimes++;
                if (rtimes <= 3)
                    window.location.href = "index.aspx?gr=" + rtimes.toString();
                else
                    window.location.href = "index.aspx";
            }, 5000);
        }
        else {
            if (rtimes >= 3) {
                setCookie("meimaptype", "1", 0.1);
            }
            setTimeout(function () {
                rtimes++;
                if (rtimes <= 3)
                    window.location.href = "index.aspx?gr=" + rtimes.toString();
                else
                    window.location.href = "index.aspx";
            }, 5000);
        }
    }
       */
</script>

 <script type="text/javascript" src="../../Scripts/trackerinfo.js"></script> 
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.ImageButton.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.MultiSelect.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.util.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.grid.CheckColumn.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.grid.CellActions.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.grid.PropertyGrid.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.grid.RowActions.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.form.ThemeCombo.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.Toast.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.state.HttpProvider.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.form.Myimg.js"></script>
<script type="text/javascript" src="../../Scripts/extends/progresscolumn/ProgressColumn.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.form.CheckboxCombo.js"></script>
<script type="text/javascript" src="../../Scripts/extends/Ext.ux.ImageEditor.js"></script>
<script type="text/javascript" src="../../Scripts/extends/DataView-more.js"></script>
<script type="text/javascript" src="../../Scripts/panelgbparams.js"></script>

<script type="text/javascript">
    var gpslang = getCookie("gpslang") == null ? "vi" : getCookie("gpslang");
    if (gpslang == "vi") {
        jswrite("../../Scripts/resource/res_vi.js?v=1.3.1.22");
    }
    else if (gpslang == "en-US") {
        jswrite("../../Scripts/resource/res_en_us.js?v=1.3.1.22");
    }
    else if (gpslang == "zh-CN") {
        jswrite("../../Scripts/resource/res_zh_cn.js?v=1.3.1.22");
    }
</script>
  
<%-- phu comment
<script type="text/javascript">
    var meimaptype = getCookie("meimaptype") == null ? 0 : parseInt(getCookie("meimaptype")); //0 google map ,1 bing map
    if (meimaptype == 0) {
        jswrite('../../Scripts/extinfowindow.js');
        jswrite('../../Scripts/popupmarker.js');
        jswrite('../../Scripts/TLabelV2.js');
        jswrite('../../Scripts/simulator.js');
        jswrite('../../Scripts/extensions.pack.js');
        jswrite('../../Scripts/exmarker.js');
        jswrite('../../Scripts/extends/Ext.ux.gmaps.js');
        jswrite('../../Scripts/extends/Ext.ux.gmapwindow.js');
        jswrite('../../Scripts/extends/Ext.ux.RouteCompareChartPanel.js');
        jswrite('../../Scripts/gmapxz.js');
        jswrite('../../Scripts/ms_gearth.js');
        jswrite('../../Scripts/ms_gmap.js');
        jswrite('../../Scripts/gmapextentsearch.js');
    }
    else {
        jswrite('../../Scripts/extends/Ext.ux.bmaps.js');
        jswrite('../../Scripts/extends/Ext.ux.bmapwindow.js');
        jswrite('../../Scripts/BTLabel.js');
        jswrite('../../Scripts/bmapxz.js');
        jswrite('../../Scripts/ms_bmap.js');
    }
    window.document.title = _TrackerMain_Title;
</script>
--%>
<%-- new js for gmap --%>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD64Iw9P3MVFJp3axl6NKJ-BucBROh_zrY&sensor=false"></script>
 

 <script src="../../Scripts/extjs/Plugin/Ext.ux.GMapPanel3.js" type="text/javascript"></script>
 <script src="../../Scripts/map.js" type="text/javascript"></script>

<script type="text/javascript" src="../../Scripts/gepluginhelpers.js"></script>
<script type="text/javascript" src="../../Scripts/program_module.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/messagereportwindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/RouteCompareChartWindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/tracker_geofence_relation_window.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/pgeofencewindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/inputstatusreport.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/VDRreport.js?v=1.3.1.22"></script>

<script type="text/javascript" src="../../Scripts/extends/chooser.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/extends/RowEditor.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/AllLineChartWindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/customerconfig.js?v=1.0.11.5"></script>
<script type="text/javascript" src="../../Scripts/odoreport.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/panelmenu.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/allCarsSensorReport.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/devicetreewindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/paneldevicelist.js?v=1.3.1.22"></script>

<script type="text/javascript" src="../../Scripts/panelcommandplus.js?v=1.0.11.05"></script>
<script type="text/javascript" src="../../Scripts/panelstatus.js?v=1.3.1.22"></script>

<script type="text/javascript" src="../../Scripts/mainwindow.js?v=1.3.1.22"></script>

<%--phu comment--%>
 <script type="text/javascript" src="../../Scripts/readlastlocation.js?v=1.3.1.22"></script> 

<script type="text/javascript" src="../../Scripts/alarmwindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/parkingspeeddistanceWindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/historywindow.js?v=1.0.11.11"></script>
<script type="text/javascript" src="../../Scripts/GroupUserTrackerWindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/ALLEvents.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/poiwindow.js?v=1.0.11.11"></script>
<script type="text/javascript" src="../../Scripts/driverwindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/rfidwindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/authwindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/PhotoListWindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/RFIDAuthWindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/locationwindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/routewindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/timezonewindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/serviceDueWindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/sms_report_window.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/otawindow.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/trackerconfig.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/trackerextendsensorwin.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/trackerfuelsensorwin.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/addnewfuelsensorwin.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/gbtrans.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/ledcommand.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/letallsettingswin.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/ledaddnewadvwin.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/sensoraveragereport.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/e01command.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/settingtools.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/customerreport1.js?v=1.3.1.22"></script>
<script type="text/javascript" src="../../Scripts/help.js?v=1.3.1.22"></script>
</html>
